<script lang="ts" setup>
  import { useUserStore } from '@/stores/user'
  import { request } from '@/utils/http'

  const getInfo = async () => {
    // 调用接口
    const res = await request.get('/patient/myUser')
    console.log(res)
  }
  const store = useUserStore()
</script>
<template>
  <div class="my">
    <custom-section title="123" showArrow></custom-section>
    <custom-section title="456"></custom-section>
    <button @click="store.setToken('1234')">修改为错误的token</button>
    <button @click="getInfo">点击获取信息</button>
  </div>
</template>

<style scoped></style>
